<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2011 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <xinqiyang@gmail.com>
// +----------------------------------------------------------------------

class BrandLogic extends  BaseService
{
	
	public static function actAdd($params){
		return self::add('brand', $params);
	}
	
	public static function actSave($params)
	{
		if(!empty($params['id'])){
			return self::saveClean('brand', $params);
		}
	}
	
	public static function blockBrand($params)
	{
		if(!empty($params['id']))
		{
			return self::redisGetHashes($params);
		}
		return false;
	}
	
	public static function webPageIndex($params)
	{
		
	}
	
}